package cn.zust.edu.cn;

import java.awt.*;

public class Circle implements IShape{
     private Point ptCenter;
        private int radius;

    public Circle(Point center, int r) {
        this.ptCenter = center;
        this.radius = r;
    }

    public Point getPtCenter() {
        return ptCenter;
    }

    public void setPtCenter(Point ptCenter) {
        this.ptCenter = ptCenter;
    }

    public int getRadius() {
        return radius;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

    public double perimeter() {
        return 2*Math.PI*this.radius;
    }

    public double area() {
        return Math.PI*radius*radius;
    }

    public void draw() {
        System.out.println("Circle...");
    }
}
